//
//  MenuControlView.h
//  B段项目自定义
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 直到世界的尽头. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LabelCollectionViewCell.h"
#import "FitHeader.h"

@protocol MenuControlViewDelegate <NSObject>

-(void)didSelectedMenu:(NSInteger)number;

@end

@interface MenuControlView : UIView<UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout>

@property(nonatomic, strong)UICollectionView *collectionView;
//设置固定数量的cell
@property(nonatomic, assign)NSInteger numberOfMenu;
//collectionView上显示的数组
@property(nonatomic, strong)NSArray *dataSource;

//选择某个cell
-(void)selectCell:(NSInteger)number;
@property(nonatomic, assign)id<MenuControlViewDelegate> delegate;

@end
